/**
 * 
 */
package com.mvc.service.utils;

import java.util.Map;

import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Service;

import com.mvc.model.mb.archive.ValidateInfo;

/**
 * 获取验证码接口
 * @author qingjie
 * Date:2016-01-18
 */
@Service
public interface ValidateServiceI {

	/**
	 * 根据手机号码获取验证码，并生成token
	 * @author qingjie
	 * @param phone
	 * @param session
	 * @return
	 */
	public String getPhoneValidateCode(String phone,HttpSession session);
	
	/**
	 * 发送短信
	 * @author qingjie
	 * @param map
	 * @return
	 */
	public boolean sendTemplateSms(Map<String, Object> map);
	
	/**
	 * 发送邮件
	 * @author qingjie
	 * @param map
	 * @return
	 */
	public boolean sendTemplateEmail(Map<String, Object> map);
	
	/**
	 * 邮件注册链接验证
	 * @author qingjie
	 * @param vi
	 * @return
	 */
	public int validateEmailLink(ValidateInfo vi);
}
